package com.api.main.dto;

/**
 * @program: GetRegBag
 * @author: Xiaofan
 * @createTime: 2021-07-11 17:40
 * @description: Functions of this class is
 **/
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RedPacketDto {
    //哪个用户
    private Integer userId;

    //指定多少人抢
    @NotNull
    private Integer total;

    //指定总金额-单位为分
    @NotNull
    private Integer amount;
}

